import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import i18n from './locales/index'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElIcons from '@element-plus/icons-vue'

import UndrawUi from 'undraw-ui'
import 'undraw-ui/dist/style.css'

// import DataV, { setClassNamePrefix } from '@dataview/datav-vue3';

// 引入ant-design-vue
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/reset.css'

const app = createApp(App)

for (const name in ElIcons) {
  app.component(name, ElIcons[name])
}

// app.config.globalProperties.$axios = axios

app.use(store).use(UndrawUi).use(router).use(ElementPlus).use(i18n).use(Antd)
// .use(DataV, { classNamePrefix: 'dv-' })
.mount('#app')
